import shelve as s
a=s.open('hasaki',writeback=True)
a['buy_1']={'order_id':['1','2','3']}
a.close()
b=s.open('hasaki',writeback=True)
print(b['buy_1'])
for i in b['buy_1']['order_id']:
    b['buy_1']['order_id'].pop(0)
    print(i)
print(b['buy_1']['order_id'])
'''
b['buy_1']['order_id']
1
3
['3']
'''